Fix the unpause_basic test. The console will appear to have failed, given the
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sat, 26 Nov 2005 01:13:51 +0000 (01:13 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sat, 26 Nov 2005 01:13:51 +0000 (01:13 +0000)
current Console.py API, because no bytes have come from it, but that's not a
failure -- an unpaused domain has no reason to output any more data.  We need
to send a command to the domain before we can be sure whether it is alive or
dead, so move the FAIL call, allowing the console connection to throw
ConsoleError.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/xm-test/tests/unpause/01_unpause_basic_pos.py

index a4e5c3c65abdc53eb00e3b514365fb4e11012411..73a4a805c726d90db4b2dfef26681769c9b52ba4 100644 (file)
@@ -71,11 +71,11 @@ if status != 0:
 try:
     console = XmConsole(domain.getName(), historySaveCmds=True)
 except ConsoleError, e:
-    FAIL(str(e))
+    pass
 try:
     run = console.runCmd("ls")
 except ConsoleError, e:
-    pass
+    FAIL(str(e))
 
 # Close the console
 console.closeConsole()